package cn.wlinker.video.monitor.brand.hikversion.create.net.config;

import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * nvr配置-list
 *
 * @author gxsjx
 * @version 1.0
 * @date 2025/5/3
 * Copyright © wlinker.cn
 */
@Configuration
@ConfigurationProperties(prefix = "hik-config.net")
public class NetConfigList {


  public void setList(List<NetConfig> list) {
    NetConfigList.list = list;
  }

  /**
   * 必须是static修饰，不然获取不到配置的值
   */
  @Getter
  private static List<NetConfig> list;

}